package com.tledu.service.impl;

import com.tledu.dao.WorkDao;
import com.tledu.model.Work;
import com.tledu.service.WorkService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class WorkServiceImpl implements WorkService {

    @Autowired
    private WorkDao workDao;
    @Override
    public List<Work> list() {
        return workDao.list();
    }

    @Override
    public int insert(Work work) {
        return workDao.insert(work);
    }

    @Override
    public int delete(String workId) {
        return workDao.delete(workId);
    }

    @Override
    public int update(Work work) {
        return workDao.update(work);
    }

    @Override
    public Work selectById(String workId) {
        return workDao.selectById(workId);
    }
}
